contentformats: Change the format of gdk_content_formats_to_string()
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2021 00:28:49 +0000 (02:28 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2021 00:28:49 +0000 (02:28 +0200)
commit6a5d555f58f1492383e52e34aa5748f3a2ca9bc1
tree8dc245ea9a2278d98d6d74334cc4cca1db3241db
parentf5dc71021fc3adc0c13e7ab8b3f9e78e434bacdb
contentformats: Change the format of gdk_content_formats_to_string()

Now, we just print a whitespace-separated list of GTypes and mime types.

This makes this neat for 2 things:

1. Parsing it (see next commit)
2. Using it in GtkBuilder (see commits after that)

In particular, the common case of supporting a single GType (or mime
type) looks like just printing the GType (or mime type), which in
GtkBuilder looks like
<property name="formats">GdkTexture</property>
gdk/gdkcontentformats.c